package vip.xiaonuo.facedoor.vo.haiqing;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@NoArgsConstructor
@Data
@Accessors(chain = true)
public class OpenDoorRequest {

    /**
     * operator
     */
    @JSONField(name = "operator")
    private String operator="OpenDoor";
    /**
     * info
     */
    @JSONField(name = "info")
    private InfoDTO info;

    /**
     * InfoDTO
     */
    @NoArgsConstructor
    @Data
    public static class InfoDTO {

        /**
         * deviceID
         */
        @JSONField(name = "DeviceID")
        private Integer deviceID;
        /**
         * chn
         */
        @JSONField(name = "Chn")
        private Integer chn;
        /**
         * status
         */
        @JSONField(name = "status")
        private Integer status;
        /**
         * msg
         */
        @JSONField(name = "msg")
        private String msg;
    }
}
